package fifis.base.model;

import fifis.mvc.model.FModel;
import org.apache.log4j.Logger;

/**
 *
 * @author porfiriopartida
 */
public abstract class BModel extends FModel {
    protected final static Logger log4j = Logger.getLogger(BModel.class);

    static final long serialVersionUID = 1L;
    private int maxHp;
    private int hp;
    private int attack;
    private int defense;

    public BModel(String name, int maxHp, int attack, int defense) {
        super(name);
        this.maxHp = maxHp;
        this.maxHp = hp;
        this.attack = attack;
        this.defense = defense;
    }

    public BModel(String name) {
        this(name, 0, 0, 0);
    }

    public int getDefense() {
        return defense;
    }

    public void setDefense(int defense) {
        this.defense = defense;
    }

    public int getMaxHp() {
        return maxHp;
    }

    public void setMaxHp(int maxHp) {
        this.maxHp = maxHp;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }
}
